function submit() {
    let subject = $("#subject").text();
    let email =  $("#email").text();
    let feedback = $("#feedback").text();

    let message = {"subject":subject,"email":email,"feedback":feedback};


    layui.use(['form', 'layer', 'jquery', 'laydate'],function(){
        $ = layui.jquery;
        let layer = layui.layer;
        $.ajax({
            url:"http://localhost:8080/back/message/feedback",
            type:"post",
            data:JSON.stringify(message),
            contentType:"application/json",
            dataType:"json",
            success:function (res) {
                if (res.msg == "success") {
                    //发异步，把数据提交给php
                    layer.alert(res.msg, {
                            icon: 6
                        })
                } else {
                    layer.alert("反馈失败");
                }
            }
        })
    })


}